package com.atguigu.common.constant;

/**
 * @author: jianPing
 * @date: 2022/2/25 11:55
 * @description: 仓库服务常量
 */
public class WareConstant {

    /**
     * 采购单状态
     */
    public enum PurchaseStatus {
        NEW(0, "新建"),
        ASSIGNED(1, "已分配"),
        RECEIVED(2, "已领取"),
        DONE(3, "已完成"),
        UNUSUAL(4, "有异常");

        private final Integer code;
        private final String desc;

        PurchaseStatus(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }

        public String getDesc() {
            return desc;
        }
    }

    /**
     * 采购需求状态
     */
    public enum PurchaseDetailStatus {
        NEW(0, "新建"),
        ASSIGNED(1, "已分配"),
        BAYING(2, "正在采购"),
        DONE(3, "已完成"),
        UNUSUAL(4, "采购失败");
        private final Integer code;
        private final String desc;

        PurchaseDetailStatus(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }

        public String getDesc() {
            return desc;
        }
    }
}
